package com.ruoyi.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购订单详细对象 phg_rm_order_detail
 * 
 * @author coderChen
 * @date 2024-06-20
 */
public class PhgRmOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 销售订单id */
    @Excel(name = "销售订单id")
    private Long orderId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long proId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long matId;

    /** bom_id */
    @Excel(name = "bom_id")
    private Long bomId;

    /** 采购编号 */
    @Excel(name = "采购编号")
    private String sn;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private Long reqNum;

    /** 采购员id */
    @Excel(name = "采购员id")
    private Long userId;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Long supplierId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setMatId(Long matId) 
    {
        this.matId = matId;
    }

    public Long getMatId() 
    {
        return matId;
    }
    public void setBomId(Long bomId) 
    {
        this.bomId = bomId;
    }

    public Long getBomId() 
    {
        return bomId;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setReqNum(Long reqNum) 
    {
        this.reqNum = reqNum;
    }

    public Long getReqNum() 
    {
        return reqNum;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("proId", getProId())
            .append("matId", getMatId())
            .append("bomId", getBomId())
            .append("sn", getSn())
            .append("reqNum", getReqNum())
            .append("userId", getUserId())
            .append("supplierId", getSupplierId())
            .toString();
    }
}
